package com.qf.mapper;

import com.qf.dto.DeveloperDto;
import com.qf.model.Developer;
import com.qf.model.Project;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DeveloperMapper {

    //当前页结果
//    @Select("select * from project where status=1 limit #{currentPage} ,#{pageSize} ")
    public List<Developer> findPage(@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize, @Param("queryString")String queryString);

    //总记录数
//    @Select("select count(*) from developer where status=1")
    public Long count(String queryString);
    //增加开发商
    public int add(Developer developer);

    //根据did查询developer并查出绑定的pids
    public DeveloperDto findById(String did);

    //修改developer
    int editOne(Developer developer);

    //删除developer
    int delete(String did);

//    Developer findByPid(int pid);
}
